package main;


public class Main {
	public static command cmd = command.def;
	
	public enum command{ 
		getAll(1), add(2), edit(3), delete(4), exit(0), def(-1); 
		public int command; 
		private command(int i){
			command = i;
		}
	}
	
	public static void main(String[] args) throws Exception {
		ConsoleInput input = new ConsoleInput();
		Manager mngr = new Manager();
		while(cmd != command.exit) {
			cmd = input.getCmd();
			mngr.print(cmd, new CommandDb(), input);
		}
	}
}
